package pl.olap.dao;

import java.util.Date;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToMany;
import javax.persistence.OneToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

@Entity
@Table(name = "premiere")
public class Premiere extends BaseEntity{
	/**
	 * 
	 */
	public Premiere() {
		super();
	}

	private static final long serialVersionUID = 1L;
	private static final int NORMAL_LENGTH = 255;

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(updatable = false, name = "PREMIERE_ID")
	private Integer idPremiere;
	
	@Column(nullable = true)
	private String dateOfPremiere;

	/**
	 * @return the idPremiere
	 */
	public Integer getIdPremiere() {
		return idPremiere;
	}

	/**
	 * @return the dateOfPremiere
	 */
	public String getDateOfPremiere() {
		return dateOfPremiere;
	}

	/**
	 * @param idPremiere the idPremiere to set
	 */
	public void setIdPremiere(Integer idPremiere) {
		this.idPremiere = idPremiere;
	}

	/**
	 * @param dateOfPremiere the dateOfPremiere to set
	 */
	public void setDateOfPremiere(String dateOfPremiere) {
		this.dateOfPremiere = dateOfPremiere;
	}
}
